package com.ylr.admin.framework.mapper;

import com.ylr.admin.framework.entity.RoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-04-21 11:45:26
 * className: RoleMapper
 * version: 1.0
 * description:
 */
public interface RoleMapper extends BaseMapper<RoleEntity> {

    /**
     * 查询角色的最大排序等级
     * @param deleteStatus 删除状态
     * @return 最大排序等级数值
     */
    Integer selectMaxSort(@Param("deleteStatus") Integer deleteStatus);

    /**
     * 查询角色键
     * @param roleIdSet    角色主键集合
     * @param deleteStatus 删除状态
     * @return 角色键集合
     */
    Set<String> selectRoleKeySet(@Param("roleIdSet") Set<Long> roleIdSet, @Param("deleteStatus") Integer deleteStatus);
}
